<?php
class OrderCustomer{
	private $idpro;
	private $namepro;
	private $price;
	private $qty;
	
	public function __construct($idpro=null, $namepro=null, $price=null, $qty=null){
		$this->idpro = $idpro;
		$this->namepro = $namepro;
		$this->price = $price;
		$this->qty = $qty;
	
	}
	
	public function setIDpro($idpro){
		$this->idpro = $idpro;
	}
	public function getIDpro(){
		return $this->idpro;
	}
	
	

	public function setNamePro($namepro){
		$this->namepro = $namepro;
	}
	public function getNamePro(){
		return $this->namepro;
	}
	
	
	public function setPrice($price){
		$this->price = $price;
	}
	public function getPrice(){
		return $this->price;
	}
		
		
	public function setQTY($qty){
		$this->qty = $qty;
	}
	public function getQTY(){
		return $this->qty;
		
	}	

public function callTotal(){
	for($i = 0; $i<count($arr); $i++){
		$total += $qty * $price;
	}
	return  $total;
}

}
?>